Elementor\Modules\Ai\Connect\Ai S

Total Complexity 43
Dependencies 3
Dependents 1
Total lines 539
Lines of code 396
Logical lines of code 94
Comment lines 77
Methods 28
Properties 0

Methods 28

Method Rating Maintainability Complexity Lines of code
get_upload_request_body()
S
52 5 23
get_image_to_image_mask()
S
48 3 35
get_image_to_image_out_painting()
S
51 2 28
ai_request()
S
54 2 22
get_image_to_image()
S
54 2 22
get_image_to_image_replace_background()
S
56 2 19
get_image_to_image_upscale()
S
56 2 19
get_image_to_image_remove_background()
S
57 2 18
get_history_by_type()
S
57 2 17
get_file_payload()
S
59 2 13
store_temp_file()
S
64 2 10
get_custom_css()
S
60 1 14
get_text_to_image()
S
60 1 14
get_custom_code()
S
61 1 13
generate_layout()
S
61 1 13
get_edit_text()
S
61 1 13
get_completion_text()
S
62 1 12
get_layout_prompt_enhanced()
S
62 1 12
get_image_prompt_enhanced()
S
62 1 12
delete_history_item()
S
64 1 10
toggle_favorite_history_item()
S
64 1 10
get_title()
S
79 1 3
get_api_url()
S
80 1 3
set_used_gallery_image()
S
65 1 10
set_status_feedback()
S
65 1 10
set_get_started()
S
65 1 10
get_usage()
S
65 1 10
init()
S
98 1 1